/* Global scrollbar hiding */
* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

html {
  /* Hide scrollbar for Chrome, Safari and Opera */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

html::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #000000;
  color: #ffffff;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

#scoreboard {
  background: #ebebeb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 1px rgba(0, 0, 0, 0.1);
  text-align: center;
  flex-grow: 1;
  overflow-y: auto;
}

.footer-separator {
  margin: 0 10px;
  color: #888;
}

.footer-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: -2.5px;
}

.game-card {
  background-color: #1a1a1a;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 20px;
  margin-top: 10px;
  color: white;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgb(255, 255, 255);
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sched-game-card {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 20px;
    margin-top: 10px;
    color: white;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgb(255, 255, 255);
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(255, 255, 255);
}

.game-headline {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.game-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-name {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.card-team-name {
  margin-top: 5px;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.card-team-record {
  font-size: 0.9rem;
  color: #ccc;
}

.game-headline {
    margin-top: -5px;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #ccc;
}

.game-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.game-info .line {
  width: 25%;
  height: 2px;
  background-color: white;
  margin: 10px 0;
}

.final-game-card, .in-progress-game-card, .scheduled-game-card {
  background-color: #1a1a1a;
}

.team-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
  color: white;
}

.team-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.team-header h2 {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}

.navbar {
  background-color: #000;
  color: white;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}
  
.navbar-content {
    width: 100%;
    max-width: 100vw;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
  
.nav-left {
    font-size: 1.2rem;
    font-weight: bold;
}
  
.nav-right {
    display: flex;
    gap: 20px;
}
  
.nav-link {
    color: white;
    text-decoration: none;
}
  
.nav-link.active {
    color: #888;
    font-weight: bold;
}

#teamsContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.games-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

@media (max-width: 768px) {
  .games-container {
    flex-direction: column;
    align-items: center;
  }
}

.team-card {
  margin-bottom: 40px;
  border: 2px solid #444;
  border-radius: 15px;
  padding: 20px;
  width: 340px;
  background-color: #000000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 10px rgba(255, 255, 255, 0.5);
}

.team-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.team-details {
  font-size: 0.9rem;
  color: #ccc;
}

.team-games {
  width: 100%;
}

.game-status {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.game-time {
  font-size: 1rem;
  color: #ccc;
}

.matchup {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-score {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 5px;
}

.card-team-score {
    font-size: 2rem;
    font-weight: bold;
  }

.game-info {
  text-align: center;
  font-size: 0.8rem;
  color: #ccc;
}

.game-clock {
  font-size: 1rem;
  font-weight: bold;
}

.game-period {
  margin-top: 5px;
}

.no-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

.no-game-text {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  color: white;
}

.card-team-logo {
  width: 67.5px;
  height: 67.5px;
}

/* Live game block styling */
.live-game-block {
  flex: 1 1 calc(33.33% - 2rem);
  max-width: 400px;
  min-height: 200px;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1rem;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.live-game-block:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.no-games {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  font-family: Arial, sans-serif;
  text-align: center;
  font-size: 1rem;
  color: #555;
  font-weight: bold;
}

#gamesContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.live-game-block img {
  width: 120px;
  height: 80px;
  object-fit: contain;
}

.live-game-block .team-name {
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 8px;
  color: black;
}

.live-game-block .team-score {
  font-size: 3.5rem;
  font-weight: normal;
  color: black;
}

.live-game-block .team-score.bold {
  font-weight: bold;
}

.live-game-block .game-status {
  font-size: 1.75rem;
  font-weight: bold;
  color: black;
  text-align: center;
}

.live-game-block .game-period {
  font-size: 1rem;
  color: grey;
  text-align: center;
  margin-top: 15px;
}

.dropdown-link.active {
  background-color: #444;
  font-weight: bold;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle .bars {
  width: 25px;
  height: 3px;
  background-color: white;
}

.dropdown-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 20px;
  background-color: #000;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.dropdown-menu.active {
  display: flex;
}

.dropdown-link {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  text-align: center;
}

.dropdown-link:hover {
  background-color: #333;
}

.footer {
  background-color: #000;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 1rem;
  position: relative;
  bottom: 0;
  width: 100%;
}

.footer-link {
  color: white;
  text-decoration: none;
  margin: 0 10px;
}

.footer-link:hover {
  color: #888;
}

@media (max-width: 525px) {
.nav-right {
  display: none;
}

.nav-toggle {
  display: flex;
}

.dropdown-menu.active {
  display: flex;
}

.live-game-block{
  margin-left: -20px;
}
}

/* AIO Page Section Styling */
.section-header {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin: 30px 0 20px 0;
  text-align: center;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

#live-section, #scheduled-section, #finished-section {
  margin-bottom: 40px;
}

#live-section .section-header {
  color: #e74c3c;
}

#scheduled-section .section-header {
  color: #3498db;
}

#finished-section .section-header {
  color: #27ae60;
}